﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormFieldModify.aspx.cs" Inherits="CRM.Web.FormManage.FormFieldModify" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <uc:ucHead ID="ucHead1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" id="tTitle">
        <tr>
            <td class="left">
                <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
            </td>
            <td class="middle">
                <div class="pagetitle">
                    <div>
                        <asp:Label ID="lblTitle" runat="server">表单字段信息保存</asp:Label></div>
                </div>
            </td>
            <td class="right">
                <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
            </td>
        </tr>
    </table>
    <div id="divMain">
        <div style="width: 100%" id="tBodyMain">
            <table border="0" cellpadding="0" cellspacing="0" class="table">
                <caption>
                </caption>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            字段编号:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtFormFieldID" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvFormFieldID"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtFormFieldID"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            表单编号:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlFormID" runat="server" CssClass="ddl">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="rfvFormID" runat="server" ErrorMessage="*" Display="Dynamic"
                            ControlToValidate="ddlFormID" Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            字段名称:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtFieldName" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvFieldName"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtFieldName"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            字段描述:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtFieldDescription" runat="server" CssClass="txt" MaxLength="64"
                            Rows="3" TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvFieldDescription"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtFieldDescription"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            排序:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtSortNumber" runat="server" CssClass="txt" MaxLength="16" Rows="3"
                            TextMode="SingleLine" onkeyup="isPositiveInteger(this);" onbeforepaste="isClipboardPositiveInteger();" ></asp:TextBox><asp:RequiredFieldValidator ID="rfvSortNumber"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtSortNumber"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            样式名称:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCssClass" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCssClass"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCssClass"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            跨列数:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtColSpan" runat="server" CssClass="txt" MaxLength="8" Rows="3"
                            TextMode="SingleLine" onkeyup="isPositiveInteger(this);" onbeforepaste="isClipboardPositiveInteger();"></asp:TextBox><asp:RequiredFieldValidator
                                ID="rfvColSpan" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtColSpan"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            最小宽度:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtWidth" runat="server" CssClass="txt" MaxLength="8" Rows="3" TextMode="SingleLine"
                            onkeyup="isPositiveInteger(this);" onbeforepaste="isClipboardPositiveInteger();"></asp:TextBox><asp:RequiredFieldValidator
                                ID="rfvWidth" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtWidth"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            最大字符长度:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtMaxLenght" runat="server" CssClass="txt" MaxLength="8" Rows="3"
                            TextMode="SingleLine" onkeyup="isPositiveInteger(this);" onbeforepaste="isClipboardPositiveInteger();"></asp:TextBox><asp:RequiredFieldValidator
                                ID="rfvMaxLenght" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtMaxLenght"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            是否启用:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlIsEnabled" runat="server" CssClass="ddl"  ></asp:DropDownList><asp:RequiredFieldValidator
                                ID="rfvIsEnabled" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlIsEnabled"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            是否显示:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlIsVisible" runat="server" CssClass="ddl"  ></asp:DropDownList><asp:RequiredFieldValidator
                                ID="rfvIsVisible" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlIsVisible"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            是否是主键:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlIsPrimaryKey" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator
                                ID="rfvIsPrimaryKey" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlIsPrimaryKey"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            是否回传:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlIsPostBack" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator
                                ID="rfvIsPostBack" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlIsPostBack"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            是否插入空白行（下拉列表）:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlIsBlankRow" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator
                                ID="rfvIsBlankRow" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlIsBlankRow"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            是否独占行:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtExclusiveRow" runat="server" CssClass="txt" MaxLength="8" Rows="3"
                            TextMode="SingleLine" onkeyup="isPositiveInteger(this);" onbeforepaste="isClipboardPositiveInteger();"></asp:TextBox><asp:RequiredFieldValidator
                                ID="rfvExclusiveRow" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtExclusiveRow"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            格式化:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtFromat" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvFromat" runat="server"
                                ErrorMessage="*" Display="Dynamic" ControlToValidate="txtFromat" Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            默认值:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtDefaultValue" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvDefaultValue"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtDefaultValue"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            关联字段名:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtRelationFields" runat="server" CssClass="txt" MaxLength="128"
                            Rows="3" TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvRelationFields"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtRelationFields"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            控件类型:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlFieldType" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator
                                ID="rfvFieldType" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlFieldType"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            按钮显示文字:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCommandText" runat="server" CssClass="txt" MaxLength="128" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCommandText"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCommandText"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            数据源类型:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlDataSourceType" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator
                                ID="rfvDataSourceType" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlDataSourceType"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            数据源信息:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtDataSourceInfo" runat="server" CssClass="txt" MaxLength="128"
                            Rows="3" TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvDataSourceInfo"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtDataSourceInfo"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            创建时间:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCreateTime" runat="server" CssClass="txt" MaxLength="20" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCreateTime"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCreateTime"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            创建人:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCreatePeople" runat="server" CssClass="txt" MaxLength="16" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCreatePeople"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCreatePeople"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            修改时间:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtModifyTime" runat="server" CssClass="txt" MaxLength="20" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvModifyTime"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtModifyTime"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            修改人:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtModifyPeople" runat="server" CssClass="txt" MaxLength="16" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvModifyPeople"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtModifyPeople"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            备注:</div>
                    </td>
                    <td class="content" colspan="3">
                        <asp:TextBox ID="txtRemark" runat="server" CssClass="txt txt90" MaxLength="256" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvRemark" runat="server"
                                ErrorMessage="*" Display="Dynamic" ControlToValidate="txtRemark" Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </table>
        </div>
        <div style="width: 100%" id="tBodyButton">
            <div class="btndiv">
                <span class="btnspan">
                    <asp:Button ID="btnOK" runat="server" Text="确 定" CommandName="Save" CssClass="btn title_qd"
                        OnClick="btnOK_Click" />
                </span><span class="btnspan">
                    <input id="btnCancel" runat="server" type="button" value="返 回" class="btn title_fh" />
                </span>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
